package com.project.springboot.equals;

import java.util.Objects;

/**
 * description: 设备药架消耗药品VO
 * @author 朱正磊
 * @date 2023-11-10 10:09:53
 */
public class MachineDrugRackVo {

    /**
     * 设备实际消耗药品的药架ID
     */
    private String machineDrugRackId;

    /**
     * 设备药架实际消耗的药品数量
     */
    private Integer machineHasConsumerNum;

    public String getMachineDrugRackId() {
        return machineDrugRackId;
    }

    public void setMachineDrugRackId(String machineDrugRackId) {
        this.machineDrugRackId = machineDrugRackId;
    }

    public Integer getMachineHasConsumerNum() {
        return machineHasConsumerNum;
    }

    public void setMachineHasConsumerNum(Integer machineHasConsumerNum) {
        this.machineHasConsumerNum = machineHasConsumerNum;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || this.getClass() != obj.getClass()) {
            return false;
        }
        MachineDrugRackVo machineDrugRackVo = (MachineDrugRackVo) obj;
        return Objects.equals(this.machineDrugRackId, machineDrugRackVo.machineDrugRackId);
    }

    @Override
    public String toString() {
        return "MachineDrugRackVo{" +
                "machineDrugRackId='" + machineDrugRackId + '\'' +
                ", machineHasConsumerNum=" + machineHasConsumerNum +
                '}';
    }

}
